<?php defined('_JEXEC') or die('Restricted access'); ?>

<!--
<table class="contentpaneopen<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
<tr>
<td>
<?php
    foreach( $this->results as $result ) : ?>
    <fieldset>
    <div>
    <span class="small<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
    <?php echo $this->pagination->limitstart + $result->count.'. ';?>
    </span>
    <?php if ( $result->href ) :
            if ($result->browsernav == 1 ) : ?>
            <a href="<?php echo JRoute::_($result->href); ?>" target="_blank">
            <?php else : ?>
            <a href="<?php echo JRoute::_($result->href); ?>">
            <?php endif;

            echo $this->escape($result->title);

            if ( $result->href ) : ?>
            </a>
            <?php endif;
            if ( $result->section ) : ?>
            <br />
            <span class="small<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
            (<?php echo $this->escape($result->section); ?>)
            </span>
            <?php endif; ?>
        <?php endif; ?>
    </div>
    <div>
    <?php echo $result->text; ?>
    </div>
    <?php
        if ( $this->params->get( 'show_date' )) : ?>
        <div class="small<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
        <?php echo $result->created; ?>
        </div>
        <?php endif; ?>
    </fieldset>
    <?php endforeach; ?>
</td>
</tr>
<tr>
<td colspan="3">
<div align="center">
<?php echo $this->pagination->getPagesLinks( ); ?>
</div>
</td>
</tr>
</table>
-->


<table class="contentpaneopen<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
    <tr>
        <td>
            <?php foreach( $this->results as $result ){ ?>                
                <fieldset style="margin-bottom: 15px; border-bottom: 1px dotted #AAABAB;">
                    <div>
                        <span class="small<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
                            <?php echo $this->pagination->limitstart + $result->count.'. ';?>
                        </span>
                        <?php if ( $result->href ){                                
                            $result->href = 'index.php?option=com_content&view=article&layout=articlefree&id=' . $result->contid . '&section_id=' . $result->secid . '&category_id=' . $result->catid; 
                   
                            if ($result->browsernav == 1 ) : ?>
                            <a href="<?php echo JRoute::_($result->href); ?>" target="_blank">
                            <?php else : ?>
                            <a href="<?php echo JRoute::_($result->href); ?>">
                                <?php endif;

                                echo $this->escape($result->title);

                                if ( $result->href ) : ?>
                            </a>
                            <?php endif;
                            if ( $result->section ) : ?>
                            <br />
                            <span class="small<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
                                (<?php echo $this->escape($result->section); ?>)
                            </span>
                            <?php endif; ?>
                        <?php } ?>
                    </div>
                    <div>
                        <?php echo $result->text; ?>
                    </div>
                    <?php
                        if ( $this->params->get( 'show_date' )) : ?>
                        <div class="small<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
                            <?php echo $result->created; ?>
                        </div>
                        <?php endif; ?>
                </fieldset>
            <?php } ?>
        </td>
    </tr>
    <tr>
        <td colspan="3">
            <div class="pt w708">
                <ul>                       
                    <?php echo $this->pagination->getPagesLinks(); ?>
                </ul>
                <br class="cb" />
            </div>               
        </td>
    </tr>
</table>       